package reflect;

/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : Student
 * @Author : 54061
 * @Date: 2022/2/28 15:23
 */
public class Student extends Person{
    private Integer id;

    public String name;

    private Integer age;

    protected String sex;

    String email;

    private void test(){
        System.out.println("hello,reflect");
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", email='" + email + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Student() {
    }

    public Student(Integer id, String name, Integer age, String sex, String email) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.email = email;
    }

    public Student(String name){
        this.name = name;
    }

    protected Student(Integer id, String name, String email){
        this.id = id;
        this.name = name;
        this.email = email;
    }

    Student(Integer id, String name, Integer age){
        this.id = id;
        this.name = name;
        this.age = age;
    }

    private Student(Integer id, String name){
        this.id = id;
        this.name = name;
    }
}
